<?php

class MysqlConnector {

    var $dbname;
    var $dbhost;
    var $dbusername;
    var $dbpassword;

    function MysqlConnector() {
        $this->dbname = "VeDist";
        $this->dbhost = "localhost";
        $this->dbusername = "root";
        $this->dbpassword = "root";
    }

    function connectMySql() {
        $openconn = mysql_connect($this->dbhost, $this->dbusername, $this->dbpassword)
                or die("can not connect to mysql database!");
        mysql_select_db($this->dbname, $openconn);
        return $openconn;
    }

}

?>
